package main



import (
	"fmt"
)

type student struct{
	name string 
	age int 
	score float64 
}

func (s*student)showInfo(){
	fmt.Printf("name=%v,age=%v,score=%v\n",s.name,s.age,s.score)
}

func (s*student)setscore(score float64){
	s.score=score 
}

func (s*student)testing(){
	fmt.Printf("student testing...")
}


type granduate struct{
	name string 
	age int 
	score float64 
}

func (s*granduate)showInfo(){
	fmt.Printf("name=%v,age=%v,score=%v\n",s.name,s.age,s.score)
}

func (s*granduate)setscore(score float64){
	s.score=score 
}

func (s*granduate)testing(){
	fmt.Printf("granduate testing...")
}
func main(){


	tony:=student{
		name:"tony",
		age:19,
		
	}
	tony.setscore(100.22)
	tony.testing()
	fmt.Println(tony)

	tom:=granduate{"tom",18,12.2}
	tom.testing()
	fmt.Println(tom)
}